GetSHXTextBoxFromStyle
Unit: SHX.pas
Description
Returns bounding rectangle of the SHX Font text string basing on the text string defined in Text
with predefined by the ASHXStyles
, PStyle
and Vertical
parameters.
Parameters | Description |
---|---|
ASHXStyles | The instance of the TsgSHXFontList object |
PStyle | Defines the converting style |
Text | The object of the sgRawByteString type |
WideText | The wide text string |
CodePage | The code page that specifies symbols in SHX. Ignored in Delphi versions older than 2009. |
Vertical | The additional converting option – SHX Font text is set to vertical orientation |
Poly | The list of the SHX Font text string |
Above | The above value of the SHX Font defined in Font |
Below | The below value of the SHX Font defined in Font |
Width | The width parameter of the SHX Font |
Height | The height parameter of the SHX Font |
RealLeft , RealBottom , RealRight , RealTop | The borders of the real surrounding rectangle |
Returns:
Value | Description |
---|---|
Above , Below | The above and below parameters of the SHX Font defined in Font |
Width , Height | The width and height parameters of the SHX Font defined in Font |
RealLeft , RealBottom , RealRight , RealTop | The real border rectangle of the converted SHX Font text string |
Syntax
procedure GetSHXTextBoxFromStyle(ASHXStyles: TsgSHXFontlist; PStyle : PsgTextStyle; const Text: sgRawByteString; const WideText: WideString; CodePage: Integer; Vertical: Boolean; var Above, Below, Width, Height, RealLeft, RealBottom, RealRight, RealTop, After: Double);